package com.znsd.zl.app.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.znsd.zl.app.user.entity.AppUserEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *     app用户持久层接口
 * </p>
 * @ClassName AppUserDao
 * @Description 客户端用户持久层接口
 * @author jaypdd
 * @email jaypdd@163.com
 * @date 2020-08-21 17:26:01
 * @Version v1.0
 */
@Mapper
public interface IAppUserDao extends BaseMapper<AppUserEntity> {

	/**
	 * 根据openid获取用户信息
	 * @param openId    openId
	 * @return          返回openid对应的单个用户信息
	 */
	AppUserEntity findUserByOpenId(String openId);

	/**
	 * 根据字典值查询字典对应id
	 * @param itemText      字典值
	 * @return              返回字典id
	 */
	Integer findDictByItemText(String itemText);
}

